<template>
    <div class="print-header">
        <h1>{{title}}</h1>
        <div class="student-info">
            <div>
                <ul>
                    <li>
                        <span></span>
                        <label>年</label>
                    </li>
                    <li>
                        <span></span>
                        <label>月</label>
                    </li>
                    <li>
                        <span></span>
                        <label>日</label>
                    </li>
                </ul>
            </div>
            <div>
                <ul>
                    <li>
                        <label>年级：</label>
                    </li>
                    <li>
                        <span></span>
                        <label>年</label>
                    </li>
                    <li>
                        <span></span>
                        <label>班</label>
                    </li>
                </ul>
                <ul>
                    <li>
                        <label>姓名：</label>
                    </li>
                    <li>
                        <span style="width: 80px"></span>
                    </li>
                </ul>
            </div>
            <div class="score">得分</div>
        </div>
    </div>
</template>
<script setup>
import { computed } from "vue"
const props = defineProps({
    detailed: {
        type: Object,
        default: () => ({})
    },
    categoryItem: {
        type: Object,
        default: () => ({})
    }
})

const title = computed(() => {
    return `${props.detailed?.grade_name || ''}${props.detailed?.sub_category_name || ''}练习`
})
</script>
<style lang="scss" scoped>
.print-header {
    padding: 0 20px;
    h1 {
        font-size: 30px;
        text-align: center;
        margin: 0;
        padding: 32px 0;
        font-weight: normal;
        font-family: "ChillRoundm";
    }
}
.student-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    > div {
        display: flex;
    }
    ul {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        + ul {
            margin-left: 32px;
        }
    }
    li {
        display: flex;
        height: 20px;
    }
    label {
        padding: 0 4px;
    }
    span {
        display: block;
        width: 34px;
        height: 20px;
        border-bottom: 1px solid #000;
    }
    .score {
        position: relative;
        width: 140px;
        justify-content: center;
    }
}
</style>